<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/common/vue/vue.js"></script>
</head>
<body>
<div id="app">
    <cpn-1></cpn-1>
    <cpn-2></cpn-2>
</div>
<script type="text/x-handlebars-template" id="temp1">
    <h2>写法一</h2>
</script>
<template id="temp2">
    <h2>写法二</h2>
</template>
<script>
    new Vue({
        el: '#app',
        components: {
            'cpn-1': {
                template: '#temp1'
            },
            'cpn-2': {
                template: "#temp2"
            }
        }
    })
</script>

</body>
</html>